package org.vectrics.common.view;

import org.vectrics.common.html.*;


public class SectionBox extends BorderTable {
    private Cell contentCell = null;
    private Cell hdrCell = null;
    
    public SectionBox() {
        Row hdrRow = addRow();
        hdrCell = hdrRow.addCell();
        hdrCell.setClass("sectionBoxHdrBg");
        Row contentRow = addRow();
        contentCell = contentRow.addCell();
        //contentCell.setClass("sectionBoxBg");
    }
    
    public Cell getContentCell() {
        return(contentCell);
    }
    
    public Cell getHdrCell() {
        return(hdrCell);
    }
    
    public void setCaption(String caption) {
        hdrCell.addElement(TextHelper.getFont("sectionHdrFont", caption));    
    }
    
}
